﻿using System;
using System.Collections.Generic;

using System.Text;

namespace Ecreate.Popedom.Service.SpringImpl
{
    public class GroupServiceImpl:IGroupService
    {
        private Dao.Hibernate.GroupDaoImpl groupDao = new Ecreate.Popedom.Dao.Hibernate.GroupDaoImpl();
        public IList<tGroup> getAll()
        {
            return groupDao.getAll();
        }

        public IList<tGroup> getAllZero()
        {
            return groupDao.getAllZero();
        }
        public IList<tGroup> getAllOne()
        {
            return groupDao.getAllOne();
        }
        public IList<tGroup> getAllTwo()
        {
            return groupDao.getAllTwo();
        }

        public IList<tGroup> getAllThree()
        {
            return groupDao.getAllThree();
        }

        public tGroup getById(long Id)
        {
            return groupDao.getByID(Id);

        }

        public void UpdateMenusByGroupId(long Id, IList<tGroupassign> Menus)
        {
            groupDao.UpdateMenusByGroupId(Id, Menus);
        }



        public void InsertGroup(tGroup model)
        {
            this.groupDao.InsertGroup(model);

        }
        public void DeleteGroup(tGroup model)
        {
            this.groupDao.DeleteGroup(model);
        }
        public void UpdateGroup(tGroup model)
        {
            this.groupDao.UpdateGroup(model);

        }
    }
}
